function RB = getRBfromMCS(mcs)
    global TBS;
    global D;
    global KS;
    rb=zeros(1,KS);
    for i = 1:length(D)
        TBk=TBS(:,ceil(mcs(i)));
        temp=find(TBk>=D(i));
        rb(i)=temp(1);
    end
    RB=rb;
end